//
//  FGConfigModel.h
//  FGChatKit
//
//  Created by feige on 2023/4/26.
//

#import <Foundation/Foundation.h>

// 站点
@interface FGWebsiteModel : NSObject
@property (nonatomic, strong) NSNumber *id; ///< 2,
@property (nonatomic, copy) NSString *logo; ///< "https://febookshtest.oss-cn-shanghai.aliyuncs.com/febookimg/202301/9_15e13105212f41ffbd0fddcc11e63338.jpg",
@property (nonatomic, copy) NSString *websiteName; ///< "飞鸽站点",
@property (nonatomic, assign) NSInteger messageRemind; ///< 3,
@property (nonatomic, strong) NSNumber *agentId; ///< 0,
@property (nonatomic, copy) NSString *agentName; ///< null,
@property (nonatomic, strong) NSNumber *companyId; ///< 0,
@property (nonatomic, copy) NSString *companyNickName; ///< null,
@property (nonatomic, copy) NSString *createTime; ///< "0001-01-01 00:00:00",
@property (nonatomic, assign) NSInteger status; ///< 1
@end

// 公司
@interface FGCompanyModel : NSObject
@property (nonatomic, strong) NSNumber *id; ///< 6,
@property (nonatomic, copy) NSString *nickName; ///< "飞鸽传书(上海)信息科技有限公司",
@property (nonatomic, copy) NSString *logo; ///< "",
@property (nonatomic, assign) BOOL isOpenLogo; ///< true,
@property (nonatomic, assign) BOOL isOpenMessageReceipt; ///< true,
@property (nonatomic, assign) BOOL isOpenMessageForesee; ///< true,
@property (nonatomic, assign) BOOL isOpenMessageWithdraw; ///< true
@end

// 按钮样式
@interface FGButtonStyleModel : NSObject
@property (nonatomic, copy) NSString *offlineText; ///< "下班啦，给我留言吧",
@property (nonatomic, copy) NSString *onlineText; ///< "我们在线，来聊聊吧",
@property (nonatomic, assign) NSInteger position; ///< 1,
@property (nonatomic, copy) NSString *themeColor; ///< "#558DFF",
@property (nonatomic, assign) NSInteger windowStyle; ///< 3,
@property (nonatomic, assign) NSInteger sideMargin; ///< 10,
@property (nonatomic, assign) NSInteger bottomMargin; ///< 10,
@property (nonatomic, assign) BOOL isShowSystemButton; ///< true
@end

// 聊天样式
@interface FGChatStyleModel : NSObject
@property (nonatomic, assign) NSInteger position; ///< 0,
@property (nonatomic, copy) NSString *textColor; ///< "#FFFFFF",
@property (nonatomic, copy) NSString *themeColor; ///< "#558DFF",
@property (nonatomic, assign) NSInteger windowSize; ///< 100,
@property (nonatomic, assign) NSInteger windowStyle; ///< 0,
@property (nonatomic, assign) NSInteger sideMargin; ///< 10,
@property (nonatomic, assign) NSInteger bottomMargin; ///< 10
@end

// 知识库
@interface FGKnowledgeModel : NSObject
@property (nonatomic, strong) NSNumber *id; ///< 1,
@property (nonatomic, copy) NSString *title; ///< "111"
@end

// 主题
@interface FGTopicsModel : NSObject
@property (nonatomic, strong) NSNumber *id; ///< 4,
@property (nonatomic, copy) NSString *topicName; ///< "DJW"
@end

// 评价设置
@interface FGEvaluationSettingsModel : NSObject
@property (nonatomic, assign) BOOL isAutoInvite; ///< true,
@property (nonatomic, copy) NSString *prompt; ///< "您对本次的服务是否满意？"
@end

// 队列设置
@interface FGQueueSettingModel : NSObject
@property (nonatomic, assign) BOOL isOpen; ///< false,
@property (nonatomic, copy) NSString *prompt; ///< "111",
@property (nonatomic, copy) NSString *guideLanguage; ///< null,
@property (nonatomic, assign) NSInteger queueLimit; ///< 55
@end

// 邀请模板
@interface FGInviteTemplateModel : NSObject
@property (nonatomic, assign) NSInteger autoPushAgain; ///< 3,
@property (nonatomic, assign) NSInteger autoPushIntervalTime; ///< 0,
@property (nonatomic, assign) NSInteger autoPushTime; ///< 2,
@property (nonatomic, copy) NSString *inviteContent; ///< "您好，有什么可以帮您",
@property (nonatomic, assign) NSInteger inviteStyle; ///< 1,
@property (nonatomic, assign) NSInteger manualPushAgain; ///< 1,
@property (nonatomic, assign) NSInteger manualPushIntervalTime; ///< 0,
@property (nonatomic, assign) NSInteger manualShowDialog; ///< 1,
@property (nonatomic, assign) NSInteger manualShowIntervalTime; ///< 0,
@property (nonatomic, assign) NSInteger pushType; ///< 2
@end

// 聊天规则-规则
@interface FGChatRuleDetailModel : NSObject
@property (nonatomic, strong) NSNumber *id; ///< 2,
@property (nonatomic, assign) NSInteger autoEndTime; ///< 300,
@property (nonatomic, strong) NSNumber *companyId; ///< 6,
@property (nonatomic, copy) NSString *createTime; ///< "2022-12-06 14:03:07",
@property (nonatomic, assign) BOOL isAutoEnd; ///< false,
@property (nonatomic, assign) BOOL isEndRemind; ///< false,
@property (nonatomic, assign) BOOL isIntercept; ///< false,
@property (nonatomic, assign) BOOL isMultisessionIntercept; ///< false,
@property (nonatomic, assign) BOOL isSourcePageIntercept; ///< false,
@property (nonatomic, assign) BOOL isTimeoutRemind; ///< true,
@property (nonatomic, assign) NSInteger multisessionInterceptMode; ///< 0,
@property (nonatomic, assign) NSInteger sessionCount; ///< 1,
@property (nonatomic, assign) NSInteger sourcePageInterceptMode; ///< 0,
@property (nonatomic, assign) NSInteger timeoutPeriod; ///< 300,
@property (nonatomic, copy) NSString *updateTime; ///< "2023-04-25 16:07:23",
@property (nonatomic, strong) NSNumber *websiteId; ///< 2
@end

// 聊天规则
@interface FGChatRuleModel : NSObject
@property (nonatomic, strong) FGChatRuleDetailModel *chatRule;
//items
@end

// 站点工具
@interface FGWebsiteToolbarsModel : NSObject
@property (nonatomic, strong) NSNumber *id; ///< 91,
@property (nonatomic, copy) NSString *content; ///< "",
@property (nonatomic, copy) NSString *createTime; ///< "2023-01-12 16:14:38",
@property (nonatomic, strong) NSNumber *templateId; ///< 0,
@property (nonatomic, assign) NSInteger templateType; ///< 1,
@property (nonatomic, copy) NSString *templateTypeName; ///< "兴趣模板",
@property (nonatomic, copy) NSString *toolbarName; ///< "外模版",
@property (nonatomic, assign) NSInteger triggerType; ///< 3,
@property (nonatomic, copy) NSString *triggerTypeName; ///< "选择模板",
@property (nonatomic, copy) NSString *updateTime; ///< "2023-03-07 13:43:12",
@property (nonatomic, copy) NSString *url; ///< "",
@property (nonatomic, strong) NSNumber *websiteId; ///< 2,
@property (nonatomic, assign) NSInteger sort; ///< 1,
@property (nonatomic, copy) NSString *name; ///< null
@end

// 配置
@interface FGConfigModel : NSObject
@property (nonatomic, strong) FGWebsiteModel *website;                              ///< 站点
@property (nonatomic, strong) FGCompanyModel *company;                              ///< 公司
@property (nonatomic, strong) FGButtonStyleModel *buttonStyle;                      ///< 按钮样式
@property (nonatomic, strong) FGChatStyleModel *chatStyle;                          ///< 聊天样式
@property (nonatomic, strong) NSArray<FGKnowledgeModel *> *knowledge;               ///< 知识库
@property (nonatomic, strong) NSArray<FGTopicsModel *> *topics;                     ///< 主题
@property (nonatomic, copy) NSString *form;
@property (nonatomic, strong) FGEvaluationSettingsModel *evaluationSetting;         ///< 评价设置
@property (nonatomic, strong) FGQueueSettingModel *queueSetting;                    ///< 队列设置
@property (nonatomic, strong) FGInviteTemplateModel *inviteTemplate;                ///< 邀请模板
@property (nonatomic, strong) FGChatRuleModel *chatRule;                            ///< 聊天规则
@property (nonatomic, assign) BOOL isProtection;
@property (nonatomic, assign) NSInteger busynessOption;
@property (nonatomic, strong) NSNumber *assignRuleId;
@property (nonatomic, strong) NSArray<FGWebsiteToolbarsModel *> *websiteToolbars;   ///< 站点工具
@end
